Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed "ERROR: Using ${var} in strings is deprecated, use {$var} instead" and added logError and logErrorDetails variables on the Shutdown handler #351

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AntoninoM90
Copy link
Contributor

@AntoninoM90 AntoninoM90 commented Apr 1, 2024

Fixed php error on view user action (src\Application\Actions\User\ViewUserAction.php):

ERROR: Using ${var} in strings is deprecated, use {$var} instead"

@AntoninoM90 AntoninoM90 marked this pull request as draft April 1, 2024 22:09
@AntoninoM90 AntoninoM90 closed this Apr 1, 2024
@AntoninoM90 AntoninoM90 reopened this Apr 1, 2024
@AntoninoM90 AntoninoM90 marked this pull request as ready for review April 1, 2024 22:13
@AntoninoM90 AntoninoM90 changed the title Fixed "ERROR: Using ${var} in strings is deprecated, use {$var} instead" Fixed "ERROR: Using ${var} in strings is deprecated, use {$var} instead" and added logError and logErrorDetails variables on the Shutdown handler Apr 7, 2024
@AntoninoM90
Copy link
Contributor Author

Why "Tests / Tests PHP 8.1 (pull_request)" is failed?

@carlosmintfan
Copy link

carlosmintfan commented Apr 26, 2024

Why "Tests / Tests PHP 8.1 (pull_request)" is failed?

Because of using more than one whitespace between the return type declaration and the variable in a function signature. That may look better, but is against the coding guidelines here…

EDITed this post: The stuff I wrote before seems to be against the coding guidelines seems legitimate and isn't what's in question here.

Copy link

@carlosmintfan carlosmintfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't like this.. (not a team member, just looking at this) couldn't you just remove the ` parts instead of leaving the string?

@AntoninoM90
Copy link
Contributor Author

I fixed the php 8.1 test issues but now I'm getting a new error from Coveralls, why?

@carlosmintfan
Copy link

Because the new changes aren't covered in the unit tests...but I'm not sure if we should do it that way. If the error given to the shutdown handler is an error in the logger itself, we shouldn't give it to the logger. On the other hand, if it wasn't, we should, so I think we should make some try/catch around it. (Only my personal view, not a maintainer.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants